#include "RenderObject.hpp"
#include "RenderObjectHandler.hpp"

namespace rgui
{

RenderObject *RenderObject::lastSelectedObject = nullptr;

RenderObject::RenderObject() :
	mVisible(true)
{
	rgui::RenderObjectHandler::add(this);
}

bool RenderObject::isVisible()
{
	return mVisible;
}

void RenderObject::setVisible(bool visible)
{
	mVisible = visible;
}


RenderObject* RenderObject::getLastSelected()
{
	return lastSelectedObject;
}

void RenderObject::setLastSelected(RenderObject *renderObject)
{
	lastSelectedObject = renderObject;
}

}